An Efficient Algorithm for the Knight's Tour Problem

نویسنده

  • Ian Parberry
چکیده

A knight’s tour is a series of moves made by a knight visiting every square of an n x n chessboard exactly once. The knight’s tour problem is the problem of constructing such a tour, given n. A knight’s tour is called closed if the last square visited is also reachable from the first square by a knight’s move, and open otherwise. Define the knight’s graph for an n x n chessboard to be the graph G = (V,E), where V={(i,j) ( 1 d i,j Gn}, and E={((i,j),(k,Q) ( {Ii-kl,Ijt[} = {1,2}}. That is, there is a vertex for every square of the board and an edge between two vertices exactly when there is a knight’s move from one to the other. Then, more formally, an open knight’s tour is defined to be a Hamiltonian path, and a closed knight’s tour is defined to be a Hamiltonian cycle on a knight’s graph. A knight’s graph has n2 vertices and 4n2 12n + 8 edges. The formal study of the knight’s tour problem is said to have begun with Euler [lo] in 1759, who considered the standard 8 x 8 chessboard. Rouse Ball and Coxeter [l] give an interesting bibliography of the history of the problem from this point. Dudeney [8, 91 contains a description of exactly which rectangular chessboards have knight’s tours; in particular, an n x n chessboard has a closed knight’s tour iff n Z 6 is even, ’ and an open knight’s tour iff n 3 5. It is not clear who first proved this fact, but it appears to be part of the folklore of the subject (see, for example, [2]). There exist several independently conceived linear time (i.e. O(n2)) algorithms for constructing knight’s tours (see, for example, [5, 191). Takemji and Lee [22, 231 recently proposed a neural network solution to the knight’s tour problem, although it appears to be of little use in practice (see [ 17, 181). We will describe in this paper a new, simple, and fast algorithm for constructing knight’s tours on square boards.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Solving the Traveling Salesman Problem by an Efficient Hybrid Metaheuristic Algorithm

The traveling salesman problem (TSP) is the problem of finding the shortest tour through all the nodes that a salesman has to visit. The TSP is probably the most famous and extensively studied problem in the field of combinatorial optimization. Because this problem is an NP-hard problem, practical large-scale instances cannot be solved by exact algorithms within acceptable computational times. ...

متن کامل

Solving the Traveling Salesman Problem by an Efficient Hybrid Metaheuristic Algorithm

The traveling salesman problem (TSP) is the problem of finding the shortest tour through all the nodes that a salesman has to visit. The TSP is probably the most famous and extensively studied problem in the field of combinatorial optimization. Because this problem is an NP-hard problem, practical large-scale instances cannot be solved by exact algorithms within acceptable computational times. ...

متن کامل

A Brute Force Approach to Solving the Knights Tour Problem Using Prolog

The knight’s tour problem is an old problem. It was investigated by Euler as well as a number of other researchers in recent years. This work describes the author’s history with the problem, reviews the current work and the implementation. The work describes the algorithm, a depth first search with no bias or heuristic, and provides a discussion along with future work of this work. The work use...

متن کامل

INTEGRATING CASE-BASED REASONING, KNOWLEDGE-BASED APPROACH AND TSP ALGORITHM FOR MINIMUM TOUR FINDING

Imagine you have traveled to an unfamiliar city. Before you start your daily tour around the city, you need to know a good route. In Network Theory (NT), this is the traveling salesman problem (TSP). A dynamic programming algorithm is often used for solving this problem. However, when the road network of the city is very complicated and dense, which is usually the case, it will take too long fo...

متن کامل

Ant Colonies Discover Knight's Tours

In this paper we introduce an Ant Colony Optimisation (ACO) algorithm to find solutions for the well-known Knight’s Tour problem. The algorithm utilizes the implicit parallelism of ACO’s to simultaneously search for tours starting from all positions on the chessboard. We compare the new algorithm to a recently reported genetic algorithm, and to a depth-first backtracking search using Warnsdorff...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Discrete Applied Mathematics

دوره 73  شماره 

صفحات  -

تاریخ انتشار 1997